.group-icon {
  position: absolute;
  display: block;
  bottom: -10px;
  right: -10px;
  height: 7px;
  width: 7px;
  opacity: 0.8;

  &:hover {
    &:after {
      border-color: transparent transparent rgb(0, 0, 0);
    }
  }
  &:after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    border-width: 0 7px 7px;
    border-right: 0;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.7);
  }
}

.group-panel,
.connection-group-panel {
  padding: 4px;
  cursor: default;
  position: absolute;
  background: #fff;
  border-radius: 0px;
  border: 1px solid rgb(180, 180, 180);
  -webkit-box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);

  .group-item {
    display: inline-block;
    padding: 1px;
    border: 1px solid transparent;
    position: relative;
  }
  .group-item:hover {
    border-color: #d1d1d1;
    background: #f2f2f2;
  }
}

.connection-group-panel {
  .group-icon {
    bottom: 0px;
    right: 0px;
  }
}
